package appgui;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTree;
import javax.swing.JLabel;

@SuppressWarnings("serial")
public class FileViewer extends JPanel {

	/**
	 * Create the panel.
	 */
	public FileViewer() {
		setLayout(null);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(6, 6, 288, 588);
		add(scrollPane);
		
		scrollPane.setViewportView(createTree());
		
		JLabel lblRecipeBrowser = new JLabel("Browse for recipes");
		scrollPane.setColumnHeaderView(lblRecipeBrowser);

	}
	
	private JTree createTree()
	{
		JTree fileSystem = new JTree();
		
		// Unused variable
		//DefaultMutableTreeNode root = new DefaultMutableTreeNode("Recipe Box");
		
		
		
		return fileSystem;
		
	}
}
